import java.util.List;


public class WidrowHoffLayer extends NeuronLayer {
	
	//learning rate a;
	private float a = (float) 0.1;
	
	public WidrowHoffLayer(Integer neuronsNum, int weightsNum) {
		super(neuronsNum, NeuronLayer.WIDROW_HOFF, weightsNum);
	}
	
	public float getA() {
		return a;
	}

	public void setA(float a) {
		this.a = a;
	}
	
	public void learn(List<Float> targets,NeuronLayer input) {
		for(int i=0;i<neurons.size();i++) {
			((WidrowHoffNeuron)neurons.get(i)).learn(targets.get(i), input);
		}
	}

}
